// 用于需要显示loading的页面
import Loading from '../Loading';

const LoadingContent: React.FC<{ loading: boolean; children: React.ReactNode }> = ({
  loading,
  children,
}) => {
  return <>{loading ? <Loading /> : children}</>;
};

export default LoadingContent;
